﻿namespace Agile.Service.Admin.Model.ViewModel.Sys;

public class InsertSysDepartmentRequest
{
    ///<summary>父级部门ID,顶级为-1</summary>
    public long ParentDepartmentID { get; set; }

    ///<summary>部门名称</summary>
    [JsonConverter(typeof(StringTrimConverter))]
    public string DepartmentName { get; set; }

    ///<summary>部门代码</summary>
    public string DepartmentCode { get; set; }

    ///<summary>部门负责人</summary>
    public long ManagerID { get; set; } 

    ///<summary>备注</summary>
    public string Remark { get; set; }

    ///<summary>是否启用</summary>
    public bool Enabled { get; set; }
}

public class UpdateSysDepartmentRequest : InsertSysDepartmentRequest
{
    ///<summary>部门ID</summary>
    public long DepartmentID { get; set; }
}

public class QuerySysDepartmentRequest
{
    ///<summary>部门名称</summary> 
    public string DepartmentName { get; set; }

    ///<summary>是否启用</summary>
    public bool? Enabled { get; set; }
}